home *** CD-ROM | disk | FTP | other *** search
/ CD Actual 22 / PC Actual CD 22.iso / SHARE / prog / POVRAY / FRYANEGG.ZIP / P4DEF_04.INC < prev    next >
Encoding:
Text File  |  1996-08-31  |  5.9 KB  |  160 lines

  1.  
  2. //------------------------------------------------------------------->
  3. //------------------------------------------------------------------->
  4. //
  5. // p4def_04.inc - Woman clipping shrubs.
  6. //
  7. // "Paul's Primitive POV People", or "P4".
  8. //
  9. // Created by: Paul T. Dawson
  10. //             ptdawson@voicenet.com
  11. //             http://www.voicenet.com/~ptdawson
  12. //
  13. //------------------------------------------------------------------->
  14. //------------------------------------------------------------------->
  15. //
  16. // Declare the *textures* for everything.
  17.  
  18.         #declare P4_Eye_Texture = texture { pigment { Blue } }
  19.         #declare P4_Glasses_Texture = texture { pigment{Gray30} }
  20.         #declare P4_Hair_Texture = texture { pigment { SemiSweetChoc } }
  21.         #declare P4_Hat_Texture = texture { pigment { Gray80 } }
  22.  
  23.         #declare P4_Shirt_Texture =
  24.                 texture { pigment { checker Black, Yellow
  25.                 scale<100,3,100> translate <50,1,50> } }
  26.  
  27.         #declare P4_Shoe_Texture = texture { pigment { Orange } }
  28.  
  29.         #declare P4_Shorts_Texture =
  30.         texture { pigment { Orange } normal { crackle 1 scale 0.3 } }
  31.  
  32.         #declare P4_Skin_Texture = texture { pigment { Copper } }
  33.  
  34. //------------------------------------------------------------------->
  35. //------------------------------------------------------------------->
  36. //
  37. // Now choose *types* of things. You will have to read the directions
  38. // to see what numbers are legal here!
  39.  
  40.         #declare P4_Eye_Type = 1
  41.         #declare P4_Glasses_Type = 0
  42.         #declare P4_Hair_Type = 3
  43.         #declare P4_Hand_Type = 1
  44.         #declare P4_Hat_Type = 5
  45.         #declare P4_Mouth_Type = 3
  46.         #declare P4_Nose_Type = 1
  47.         #declare P4_Shirt_Type = 2
  48.         #declare P4_Shoe_Type = 3
  49.         #declare P4_Shorts_Type = 1
  50.  
  51. //------------------------------------------------------------------->
  52. //------------------------------------------------------------------->
  53. //
  54. // Set the sizes of various things.
  55.  
  56.         #declare P4_Leg_Length = 34
  57.         #declare P4_Neck_Height = 3
  58.         #declare P4_Shirt_Height = 24
  59.         #declare P4_Shorts_Height = 14
  60.  
  61. //------------------------------------------------------------------->
  62. //------------------------------------------------------------------->
  63. //
  64. // Choose the rotation values. Please read the directions!
  65.  
  66.         #declare P4_Hat_Rotate = < 10, 0, 0 >
  67.         #declare P4_Neck_Rotate = < -5, 0, 0 >
  68.         #declare P4_Waist_Rotate = < -20, 0, 0 >
  69.  
  70.         #declare P4_Left_Elbow_Rotate = < 0, -90, 0 >
  71.         #declare P4_Right_Elbow_Rotate = < 0, 100, 0 >
  72.  
  73.         #declare P4_Left_Eyelid_Rotate = -40
  74.         #declare P4_Right_Eyelid_Rotate = -40
  75.  
  76.         #declare P4_Left_Knee_Rotate = < -5, 0, 0 >
  77.         #declare P4_Right_Knee_Rotate = < -5, 0, 0 >
  78.  
  79.         #declare P4_Left_Leg_Rotate = < 5, 0, -5 >
  80.         #declare P4_Right_Leg_Rotate = < 5, 0, 5 >
  81.  
  82.         #declare P4_Left_Shoulder_Rotate = < -40, -40, 30 >
  83.         #declare P4_Right_Shoulder_Rotate = < -35, 60, -40 >
  84.  
  85. //------------------------------------------------------------------->
  86. //------------------------------------------------------------------->
  87. //
  88. // Create the optional "holding" object. This will go into the left
  89. // hand, and move with the hand. This is optional - just comment it
  90. // out if not needed, and set the flag to "false".
  91. //
  92. // The flag is necessary to prevent person #2 from carrying the object
  93. // that you gave to person #1. Set it to true or false.
  94.  
  95.         #declare P4_Holding_Flag = true
  96.  
  97.         #declare P4_Holding_Object = union {
  98.  
  99.                 cylinder { <0,0,0><0,8,0>, 1 pigment{Red} }
  100.                 box { <-1,8,-0.25><1,24,0.25> pigment{Silver} }
  101.  
  102.                 union {
  103.                 cylinder { <0,0,0><0,8,0>, 1 pigment{Red} }
  104.                 box { <-1,8,-0.25><1,24,0.25> pigment{Silver} }
  105.                         translate y * -10
  106.                         rotate z * 50
  107.                         translate y * 10
  108.                 } // End of union.
  109.  
  110.                 // Swing the clippers around so they end up
  111.                 // parallel with the ground.
  112.                         //rotate y * 40
  113.                         rotate x * -45
  114.  
  115.                 } // End of union.
  116.  
  117. //------------------------------------------------------------------->
  118. //------------------------------------------------------------------->
  119. //
  120. // Make another optional object - a "bracelet". This also has a flag
  121. // to set on/off. This prevents duplicate bracelets! The bracelet
  122. // should be at <0,0,0>, just like a standard torus.
  123.  
  124.         #declare P4_Bracelet_Flag = false
  125.  
  126.         #declare P4_Bracelet_Object =
  127.                 torus { 3, 1 pigment{Red} }
  128.  
  129. //------------------------------------------------------------------->
  130. //------------------------------------------------------------------->
  131. //
  132. // Despite my attempts at using "realistic inches" as units, the
  133. // people always seem to end up 8 or 9 feet tall. This variable lets
  134. // you scale the person down to a normal size. Use the P4_TEST.POV
  135. // scene to see how tall your person actually is!
  136.  
  137.         #declare P4_Total_Scale = 80/100
  138.  
  139. //------------------------------------------------------------------->
  140. //------------------------------------------------------------------->
  141. //
  142. // This is the height to move the person up, so his/her feet are on
  143. // the floor. Sorry, but because of bendable legs, this has to be
  144. // adjusted manually (by YOU). 8-)
  145.  
  146.         #declare P4_Y_Adjust = 32
  147.  
  148. //------------------------------------------------------------------->
  149. //------------------------------------------------------------------->
  150. //
  151. // Now call "p4_main.inc" to create the object.
  152.  
  153.         #include "p4_main.inc"
  154.  
  155. //------------------------------------------------------------------->
  156. //------------------------------------------------------------------->
  157. //
  158. // End of this file.
  159.  
  160.